Skip to content

Adds feature to set defmt logs for mantra traces on functions#75

Open
mhatzl wants to merge 3 commits into
mainfrom
mh/defmt-macro-logs
Open

Adds feature to set defmt logs for mantra traces on functions#75
mhatzl wants to merge 3 commits into
mainfrom
mh/defmt-macro-logs

Conversation

@mhatzl

@mhatzl mhatzl commented Jul 22, 2026

Copy link
Copy Markdown
Owner

This adds the defmt feature to mantra-macros and mantra-procm to set a defmt log for traces set on functions.
For embedded targets, the host side may then extract those logs to retrieve mantra coverage information during testing.

The extract feature of mantra-macros adds functionality to extract the coverage information from log messages. Having extract functionality in this crate keeps it close to the code defining the message format and setting the logs.

mhatzl added 3 commits July 16, 2026 18:19
Missed to set `no_std`. Crate would have already been compatible.
With the "defmt" feature enabled, macros will print a defmt msg including the line and file the macros are used at.
This allows to get coverage information from embedded targets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant